package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.HANDING_FEE_CALCULATION;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class HandlingChargeApi implements IRequestApi, IRequestType {

    private ReqHandlingChargeBean overripe;

    public HandlingChargeApi(ReqHandlingChargeBean bean) {
        overripe = bean;
    }

    @NonNull
    @Override
    public String getApi() {
        return HANDING_FEE_CALCULATION;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }


    public static final class ReqHandlingChargeBean {
        private ArrayList<String> pyjamas;
        public void setPyjamas(ArrayList<String> pyjamas) {
            this.pyjamas = pyjamas;
        }
    }

    public static final class ResHandlingChargeBean {
        @Override
        public String toString() {
            return "ResHandlingChargeBean{" +
                    "paillette=" + paillette +
                    ", overripe=" + overripe +
                    ", phylogenic='" + phylogenic + '\'' +
                    ", blatherskite='" + blatherskite + '\'' +
                    '}';
        }

        private PailletteBean paillette;
        private ArrayList<OverripeBean> overripe;
        private String phylogenic;
        private String blatherskite;

        public PailletteBean getPaillette() {
            return paillette;
        }

        public ArrayList<OverripeBean> getOverripe() {
            return overripe;
        }

        public String getPhylogenic() {
            return phylogenic;
        }

        public boolean isRequestSuccess() {
            return phylogenic.equals("0");
        }

        public String getMsg() {
            return blatherskite;
        }
    }

    public static final class OverripeBean {
        private String uniformitarian;
        private String giglot;
        private double nuciform;
        private int ichneumon;
        private String scooterist;
        private double herzegovina;
        private double strabismal;
        private double telegraphoscope;
        private double tubulure;
        private double seropurulent;
        private String neglegence;
        private String vitruvian;
        private boolean surprisingly;
        private String decorate;
        private String acinus;

        private ArrayList<QualitativeBean> qualitative;

        public String getUniformitarian() {
            return uniformitarian;
        }

        public String getGiglot() {
            return giglot;
        }

        public double getNuciform() {
            return nuciform;
        }

        public int getIchneumon() {
            return ichneumon;
        }

        public String getScooterist() {
            return scooterist;
        }

        public double getHerzegovina() {
            return herzegovina;
        }

        public double getStrabismal() {
            return strabismal;
        }

        public double getTelegraphoscope() {
            return telegraphoscope;
        }

        public double getTubulure() {
            return tubulure;
        }

        public double getSeropurulent() {
            return seropurulent;
        }

        public String getNeglegence() {
            return neglegence;
        }

        public String getVitruvian() {
            return vitruvian;
        }

        public boolean isSurprisingly() {
            return surprisingly;
        }

        public String getDecorate() {
            return decorate;
        }

        public String getAcinus() {
            return acinus;
        }

        public ArrayList<QualitativeBean> getQualitative() {
            return qualitative;
        }
    }

    public static final class PailletteBean {
        private double postdoc;
        private double strabismal;
        private double tubulure;
        private double telegraphoscope;
        private double herzegovina;
        private int ichneumon;
        private ArrayList<QualitativeBean> qualitative;

        public double getPostdoc() {
            return postdoc;
        }

        public double getStrabismal() {
            return strabismal;
        }

        public double getTubulure() {
            return tubulure;
        }

        public double getTelegraphoscope() {
            return telegraphoscope;
        }

        public double getHerzegovina() {
            return herzegovina;
        }

        public int getIchneumon() {
            return ichneumon;
        }

        public ArrayList<QualitativeBean> getQualitative() {
            return qualitative;
        }

        @Override
        public String toString() {
            return "PailletteBean{" +
                    "postdoc=" + postdoc +
                    ", strabismal=" + strabismal +
                    ", tubulure=" + tubulure +
                    ", telegraphoscope=" + telegraphoscope +
                    ", herzegovina=" + herzegovina +
                    ", ichneumon=" + ichneumon +
                    ", qualitative=" + qualitative +
                    '}';
        }
    }

    public static final class QualitativeBean {
        private String cpcu;
        private String superempirical;

        public String getCpcu() {
            return cpcu;
        }

        public String getSuperempirical() {
            return superempirical;
        }
    }


}

